<?php

/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-22 00:08:55
 * @lastTime 2020-05-01 23:56:43
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Test\Unit;

use Design\Creational\Singleton\Singleton;

class SingletonTest extends \Test\BaseTest
{


    public function testSingleton()
    {
        $classA = Singleton::getInstance();
        $classB = Singleton::getInstance();

        $this->assertInstanceOf(Singleton::class, $classA);
        $this->assertSame($classA, $classB);

    }//end testSingleton()


}//end class
